﻿using System;

namespace TfsGiggle.Core.IntegrationTest
{
    class MockTfsTeamProjectCollection : ITfsTeamProjectCollection, IServiceProvider
    {
        public void EnsureAuthenticated()
        {
            ;
        }

        public object GetService(Type serviceType)
        {
            if (serviceType == typeof(IVersionControlServer))
            {
                return MockVersionControlServer.Instance;
            }
            return null;
        }

        public T GetService<T>()
        {
            return (T)this.GetService(typeof(T));
        }

        public void Dispose()
        {
            ;
        }
    }
}
